import request from "@/utils/request";

export function save(video) {
  return request({
    url: `/admin/eduVideo/save`,
    method: "post",
    data: video
  });
}

export function getById(id) {
  return request({
    url: `/admin/eduVideo/get/${id}`,
    method: "get"
  });
}

export function updateById(video) {
  return request({
    url: `/admin/eduVideo/update`,
    method: "put",
    data: video
  });
}

export function removeVideo(id) {
  return request({
    url: `/admin/eduVideo/remove/${id}`,
    method: "delete"
  });
}

export function removeVodById(videoId) {
  return request({
    //baseURL: 'http://localhost:8003',
    url: `/admin/vodMedia/remove/${videoId}`,
    method: "delete"
  });
}
